home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 January: Mac OS SDK / Dev.CD Jan 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / PInterfaces / ROMDefs.p < prev    next >
Encoding:
Text File  |  1998-08-17  |  11.0 KB  |  270 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        ROMDefs.p
  3.  
  4.      Contains:    NuBus card ROM Definitions.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1986-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. }
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT ROMDefs;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __ROMDEFS__}
  27. {$SETC __ROMDEFS__ := 1}
  28.  
  29. {$I+}
  30. {$SETC ROMDefsIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33.  
  34. {$PUSH}
  35. {$ALIGN MAC68K}
  36. {$LibExport+}
  37.  
  38.  
  39. CONST
  40.     appleFormat                    = 1;                            { Format of Declaration Data (IEEE will assign real value) }
  41.     romRevision                    = 1;                            { Revision of Declaration Data Format }
  42.     romRevRange                    = 9;                            { Revision of Declaration Data Format [1..9] }
  43.     testPattern                    = 1519594439;                    { FHeader long word test pattern }
  44.     sCodeRev                    = 2;                            { Revision of code (For sExec) }
  45.     sExec2                        = 2;
  46.     sCPU68000                    = 1;                            { CPU type = 68000 }
  47.     sCPU68020                    = 2;                            { CPU type = 68020 }
  48.     sCPU68030                    = 3;                            { CPU type = 68030 }
  49.     sCPU68040                    = 4;                            { CPU type = 68040 }
  50.     sMacOS68000                    = 1;                            { Mac OS, CPU type = 68000 }
  51.     sMacOS68020                    = 2;                            { Mac OS, CPU type = 68020 }
  52.     sMacOS68030                    = 3;                            { Mac OS, CPU type = 68030 }
  53.     sMacOS68040                    = 4;                            { Mac OS, CPU type = 68040 }
  54.     board                        = 0;                            { Board sResource - Required on all boards }
  55.     displayVideoAppleTFB        = 16843009;                        { Video with Apple parameters for TFB card. }
  56.     displayVideoAppleGM            = 16843010;                        { Video with Apple parameters for GM card. }
  57.     networkEtherNetApple3Com    = 33620225;                        { Ethernet with apple parameters for 3-Comm card. }
  58.     testSimpleAppleAny            = -2147417856;                    { A simple test sResource. }
  59.     endOfList                    = 255;                            { End of list }
  60.     defaultTO                    = 100;                            { 100 retries. }
  61.  
  62.  
  63.                                                                 {  sResource flags for sRsrc_Flags  }
  64.     fOpenAtStart                = 1;                            {  set => open the driver at start time, else do not  }
  65.     f32BitMode                    = 2;                            {  set => a 32-bit address will be put into dctlDevBase (IM Devices 2-54)  }
  66.  
  67.     sRsrcType                    = 1;                            { Type of sResource }
  68.     sRsrcName                    = 2;                            { Name of sResource }
  69.     sRsrcIcon                    = 3;                            { Icon }
  70.     sRsrcDrvrDir                = 4;                            { Driver directory }
  71.     sRsrcLoadDir                = 5;                            { Load directory }
  72.     sRsrcBootRec                = 6;                            { sBoot record }
  73.     sRsrcFlags                    = 7;                            { sResource Flags }
  74.     sRsrcHWDevId                = 8;                            { Hardware Device Id }
  75.     minorBaseOS                    = 10;                            { Offset to base of sResource in minor space. }
  76.     minorLength                    = 11;                            { Length of sResource’s address space in standard slot space. }
  77.     majorBaseOS                    = 12;                            { Offset to base of sResource in Major space. }
  78.     majorLength                    = 13;                            { Length of sResource in super slot space. }
  79.     sRsrcTest                    = 14;                            { sBlock diagnostic code }
  80.     sRsrccicn                    = 15;                            { Color icon }
  81.     sRsrcicl8                    = 16;                            { 8-bit (indexed) icon }
  82.     sRsrcicl4                    = 17;                            { 4-bit (indexed) icon }
  83.     sDRVRDir                    = 16;                            { sDriver directory }
  84.     sGammaDir                    = 64;                            { sGamma directory }
  85.     sRsrcVidNames                = 65;                            { Video mode name directory }
  86.     sRsrcDock                    = 80;                            { spID for Docking Handlers }
  87.     sDiagRec                    = 85;                            { spID for board diagnostics }
  88.     sVidAuxParams                = 123;                            { more video info for Display Manager -- timing information }
  89.     sDebugger                    = 124;                            { DatLstEntry for debuggers indicating video anamolies }
  90.     sVidAttributes                = 125;                            { video attributes data field (optional,word) }
  91.     fLCDScreen                    = 0;                            {  bit 0 - when set is LCD, else is CRT }
  92.     fBuiltInDisplay                = 1;                            {       1 - when set is built-in (in the box) display, else not }
  93.     fDefaultColor                = 2;                            {       2 - when set display prefers multi-bit color, else gray }
  94.     fActiveBlack                = 3;                            {       3 - when set black on display must be written, else display is naturally black }
  95.     fDimMinAt1                    = 4;                            {       4 - when set should dim backlight to level 1 instead of 0 }
  96.     fBuiltInDetach                = 4;                            {       4 - when set is built-in (in the box), but detaches }
  97.     sVidParmDir                    = 126;
  98.     sBkltParmDir                = 140;                            { directory of backlight tables }
  99.     stdBkltTblSize                = 36;                            { size of “standard” 0..31-entry backlight table }
  100.     sSuperDir                    = 254;
  101.  
  102. { =======================================================================    }
  103. { sResource types                                                            }
  104. { =======================================================================    }
  105.     catBoard                    = $0001;                        { Category for board types. }
  106.     catTest                        = $0002;                        { Category for test types -- not used much. }
  107.     catDisplay                    = $0003;                        { Category for display (video) cards. }
  108.     catNetwork                    = $0004;                        { Category for Networking cards. }
  109.     catScanner                    = $0008;                        { scanners bring in data somehow }
  110.     catCPU                        = $000A;
  111.     catIntBus                    = $000C;
  112.     catProto                    = $0011;
  113.     catDock                        = $0020;                        { <Type> }
  114.     typeBoard                    = $0000;
  115.     typeApple                    = $0001;
  116.     typeVideo                    = $0001;
  117.     typeEtherNet                = $0001;
  118.     typeStation                    = $0001;
  119.     typeDesk                    = $0002;
  120.     typeTravel                    = $0003;
  121.     typeDSP                        = $0004;
  122.     typeXPT                        = $000B;
  123.     typeSIM                        = $000C;
  124.     typeDebugger                = $0100;
  125.     type68000                    = $0002;
  126.     type68020                    = $0003;
  127.     type68030                    = $0004;
  128.     type68040                    = $0005;
  129.     type601                        = $0025;
  130.     type603                        = $002E;
  131.     typeAppleII                    = $0015;                        { Driver Interface : <id.SW> }
  132.     drSwMacCPU                    = 0;
  133.     drSwAppleIIe                = $0001;
  134.     drSwApple                    = 1;                            { To ask for or define an Apple-compatible SW device. }
  135.     drSwMacsBug                    = $0104;
  136.     drSwDepewEngineering        = $0101;                        { Driver Interface : <id.SW><id.HW> }
  137.     drHwTFB                        = 1;                            { HW ID for the TFB (original Mac II) video card. }
  138.     drHw3Com                    = 1;                            { HW ID for the Apple EtherTalk card. }
  139.     drHwBSC                        = 3;
  140.     drHwGemini                    = 1;
  141.     drHwDeskBar                    = 1;
  142.     drHwHooperDock                = 2;                            { Hooper’s CatDock,TypeDesk,DrSwApple ID; registered with DTS. }
  143.     drHwATT3210                    = $0001;
  144.     drHwBootBug                    = $0100;
  145.     drHwMicroDock                = $0100;                        {  video hardware id's  - <catDisplay><typVideo> }
  146.     drHwSTB3                    = $0002;                        {  Assigned by Kevin Mellander for STB-3 hardware.  }
  147.     drHwSTB                        = $0002;                        {  (Both STB-3 and STB-4 share the same video hardware.)  }
  148.     drHwRBV                        = $0018;                        {  IIci Aurora25/16 hw ID  }
  149.     drHwJMFB                    = $0019;                        {  4•8/8•24 NuBus card  }
  150.     drHwElsie                    = $001A;
  151.     drHwTim                        = $001B;
  152.     drHwDAFB                    = $001C;
  153.     drHwDolphin                    = $001D;                        {  8•24GC NuBus card  }
  154.     drHwGSC                        = $001E;                        {  (Renamed from GSC drHWDBLite)  }
  155.     drHwDAFBPDS                    = $001F;
  156.     drHWVSC                        = $0020;
  157.     drHwApollo                    = $0021;
  158.     drHwSonora                    = $0022;
  159.     drHwReserved2                = $0023;
  160.     drHwColumbia                = $0024;
  161.     drHwCivic                    = $0025;
  162.     drHwBrazil                    = $0026;
  163.     drHWPBLCD                    = $0027;
  164.     drHWCSC                        = $0028;
  165.     drHwJET                        = $0029;
  166.     drHWMEMCjr                    = $002A;
  167.     drHwBoogie                    = $002B;                        {  8•24AC nuBus video card (built by Radius)  }
  168.     drHwHPV                        = $002C;                        {  High performance Video (HPV) PDS card for original PowerMacs  }
  169.     drHwPlanaria                = $002D;                        { PowerMac 6100/7100/8100 PDS AV video }
  170.     drHwValkyrie                = $002E;
  171.     drHwKeystone                = $002F;
  172.     drHWATI                        = $0055;
  173.     drHwGammaFormula            = $0056;                        {  Use for gType of display mgr gamma tables  }
  174.                                                                 {  other drHW id's for built-in functions }
  175.     drHwSonic                    = $0110;
  176.     drHwMace                    = $0114;
  177.     drHwDblExp                    = $0001;                        {  CPU board IDs - <catBoard> <typBoard> <0000> <0000> }
  178.     MIIBoardId                    = $0010;                        { Mac II Board ID }
  179.     ciVidBoardID                = $001F;                        { Aurora25 board ID }
  180.     CX16VidBoardID                = $0020;                        { Aurora16 board ID }
  181.     MIIxBoardId                    = $0021;                        { Mac IIx Board ID }
  182.     SE30BoardID                    = $0022;                        { Mac SE/30 Board ID }
  183.     MIIcxBoardId                = $0023;                        { Mac IIcx Board ID }
  184.     MIIfxBoardId                = $0024;                        { F19 board ID }
  185.     EricksonBoardID                = $0028;
  186.     ElsieBoardID                = $0029;
  187.     TIMBoardID                    = $002A;
  188.     EclipseBoardID                = $002B;
  189.     SpikeBoardID                = $0033;
  190.     DBLiteBoardID                = $0035;
  191.     ZydecoBrdID                    = $0036;
  192.     ApolloBoardID                = $0038;
  193.     PDMBrdID                    = $0039;
  194.     VailBoardID                    = $003A;
  195.     WombatBrdID                    = $003B;
  196.     ColumbiaBrdID                = $003C;
  197.     CycloneBrdID                = $003D;
  198.     CompanionBrdID                = $003E;
  199.     DartanianBoardID            = $0040;
  200.     DartExtVidBoardID            = $0046;
  201.     HookBoardID                    = $0047;                        { Hook internal video board ID }
  202.     EscherBoardID                = $004A;                        { Board ID for Escher (CSC) }
  203.     POBoardID                    = $004D;                        { Board ID for Primus/Optimus/Aladdin }
  204.     TempestBrdID                = $0050;                        { Non-official Board ID for Tempest }
  205.     BlackBirdBdID                = $0058;                        { Board ID for BlackBird }
  206.     BBExtVidBdID                = $0059;                        { Board ID for BlackBird built-in external video }
  207.     YeagerBoardID                = $005A;                        { Board ID for Yeager }
  208.     BBEtherNetBdID                = $005E;                        { Board ID for BlackBird Ethernet board }
  209.     TELLBoardID                    = $0065;                        { Board ID for TELL (Valkyrie) }
  210.     MalcolmBoardID                = $065E;                        { Board ID for Malcolm }
  211.     AJBoardID                    = $065F;                        { Board ID for AJ }
  212.     M2BoardID                    = $0660;                        { Board ID for M2 }
  213.     OmegaBoardID                = $0661;                        { Board ID for Omega }
  214.     TNTBoardID                    = $0670;                        { Board ID for TNT/Alchemy/Hipclipper CPUs (did Nano just make this up?) }
  215.     HooperBoardID                = $06CD;                        { Board ID for Hooper }
  216.                                                                 {  other board IDs }
  217.     BoardIDDblExp                = $002F;
  218.     DAFBPDSBoardID                = $0037;
  219.     MonetBoardID                = $0048;
  220.     SacSONIC16BoardID            = $004E;
  221.     SacSONIC32BoardID            = $004F;                        {  CPU board types - <CatCPU> <Typ680x0> <DrSwMacCPU> }
  222.     drHWMacII                    = $0001;                        { Mac II hw ID }
  223.     drHwMacIIx                    = $0002;                        { Mac IIx hw ID }
  224.     drHWSE30                    = $0003;                        { Mac SE/30 hw ID }
  225.     drHwMacIIcx                    = $0004;                        { Mac IIcx hw ID }
  226.     drHWMacIIfx                    = $0005;                        { Mac IIfx hw ID }
  227.     drHWF19                        = $0005;                        { F19 hw ID }
  228.     sBlockTransferInfo            = 20;                            { general slot block xfer info }
  229.     sMaxLockedTransferCount        = 21;                            { slot max. locked xfer count }
  230.     boardId                        = 32;                            { Board Id }
  231.     pRAMInitData                = 33;                            { sPRAM init data }
  232.     primaryInit                    = 34;                            { Primary init record }
  233.     timeOutConst                = 35;                            { Time out constant }
  234.     vendorInfo                    = 36;                            { Vendor information List. See Vendor List, below }
  235.     boardFlags                    = 37;                            { Board Flags }
  236.     secondaryInit                = 38;                            { Secondary init record/code }
  237.                                                                 {  The following Id's are associated with all CPU sResources. }
  238.     MajRAMSp                    = 129;                            { ID of Major RAM space. }
  239.     MinROMSp                    = 130;                            { ID of Minor ROM space. }
  240.     vendorId                    = 1;                            { Vendor Id }
  241.     serialNum                    = 2;                            { Serial number }
  242.     revLevel                    = 3;                            { Revision level }
  243.     partNum                        = 4;                            { Part number }
  244.     date                        = 5;                            { Last revision date of the card }
  245.  
  246.     testByte                    = 32;                            { Test byte. }
  247.     testWord                    = 33;                            { 0021 }
  248.     testLong                    = 34;                            { Test Long. }
  249.     testString                    = 35;                            { Test String. }
  250.  
  251. { sResource List. Category: Display        Type: Video }
  252. { The following Id's are common to all Mode sResources in Display_Video }
  253. { functional sResources. }
  254.     mBlockTransferInfo            = 5;                            {  slot block xfer info PER MODE  }
  255.     mMaxLockedTransferCount        = 6;                            {  slot max. locked xfer count PER MODE  }
  256.  
  257.  
  258.  
  259.  
  260. {$ALIGN RESET}
  261. {$POP}
  262.  
  263. {$SETC UsingIncludes := ROMDefsIncludes}
  264.  
  265. {$ENDC} {__ROMDEFS__}
  266.  
  267. {$IFC NOT UsingIncludes}
  268.  END.
  269. {$ENDC}
  270.